package com.whnk.workflow.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.whnk.common.base.BaseEntity;

/**
 * 请假审批表 wf_leave_apr
 *
 * @author whwhnk
 * @date 2019-04-16
 */
public class LeaveApr extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 请假审批表id
     */
    private Integer id;
    /**
     * 工作流关联id
     */
    private String businessKey;
    /**
     * 当前节点
     */
    private String step;
    /**
     * 审批结果（1同意 2拒绝）
     */
    private String status;
    /**
     * 理由
     */
    private String reason;
    /**
     * 审批人登录账号
     */
    private String aprLoginName;
    /**
     * 审批人用户昵称
     */
    private String aprUserName;
    /**
     * 创建时间
     */
    private Date createTime;

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setBusinessKey(String businessKey) {
        this.businessKey = businessKey;
    }

    public String getBusinessKey() {
        return businessKey;
    }

    public void setStep(String step) {
        this.step = step;
    }

    public String getStep() {
        return step;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getReason() {
        return reason;
    }

    public void setAprLoginName(String aprLoginName) {
        this.aprLoginName = aprLoginName;
    }

    public String getAprLoginName() {
        return aprLoginName;
    }

    public void setAprUserName(String aprUserName) {
        this.aprUserName = aprUserName;
    }

    public String getAprUserName() {
        return aprUserName;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("businessKey", getBusinessKey())
                .append("step", getStep())
                .append("status", getStatus())
                .append("reason", getReason())
                .append("aprLoginName", getAprLoginName())
                .append("aprUserName", getAprUserName())
                .append("createTime", getCreateTime())
                .toString();
    }
}
